package com.eportal.service;

import java.io.File;
import java.util.Map;

import com.eportal.action.background.pojo.Page;
import com.eportal.domain.BannerResource;

public interface BannerResourceService {

	BannerResource add(BannerResource bannerResource) throws Exception;

    void update(BannerResource bannerResource);

    void delete(long id);

    Page find(String where, Page page);

    BannerResource get(long id);

	Map<String, Object> addMethod(BannerResource bannerResource, File file, String fileName);
	
	Map<String, String> getBySql(Long sid);

	Map<String, Object> updateMethod(BannerResource bannerResource, File file, String fileName);

	Map<String, Object> addLockBannerMethod(BannerResource bannerResource, File file, String fileName, String priority,
			String timeFrom, String timeTo);

	Map<String, Object> updateLockBannerMethod(BannerResource bannerResource, File file, String fileName,
			String priority, String timeFrom, String timeTo);
}
